from django.contrib import admin
from tvapi.thetvdb.models import *

class ActorAdmin(admin.ModelAdmin):
    list_display = ('id', 'name')
    ordering = ['name']
    search_fields = ['name', 'id']

class ActorRolesAdmin(admin.ModelAdmin):
    list_display = ('id', 'actor', 'Role', 'series', 'thetvdbid')
    ordering = ['actor__name']
    search_fields = ('id', 'thetvdbid', 'actor__name', 'Role', 'series__SeriesName')

#admin.site.register(Users)
admin.site.register(ServerSettings)
admin.site.register(Language)
admin.site.register(Actor, ActorAdmin)
admin.site.register(ActorRoles, ActorRolesAdmin)
admin.site.register(Banners)
admin.site.register(Series)
admin.site.register(Episodes)
admin.site.register(Season)
admin.site.register(ImageDB)
admin.site.register(ImageType)
admin.site.register(GuestStar)
admin.site.register(Director)
admin.site.register(Writer)
admin.site.register(Genre)
